package com.whfc.ms.config;

import com.whfc.common.base.BaseController;
import com.whfc.common.util.SessionAttr;
import com.whfc.entity.dto.login.MsUserLogin;
import com.whfc.fuum.entity.SysUser;
import com.whfc.fuum.entity.WxUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author: sun
 * @version: v1.0.0
 * @since 2022/8/16
 */
public abstract class AbstractBaseController extends BaseController {

    protected SysUser getLoginUser() {
        Session session = SecurityUtils.getSubject().getSession();
        return (SysUser) session.getAttribute(SessionAttr.MS_USER);
    }
}
